package com.chushouya.product.dto.admin.tempevaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 模板估价新增DTO
 */
@Data
@ApiModel(value = "模板估价新增DTO")
public class TempEvaluateSaveDTO {

    @ApiModelProperty(value = "分类ID", required = true)
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;

    @ApiModelProperty(value = "模板名称", required = true)
    @NotBlank(message = "模板名称不能为空")
    private String tempName;

    @ApiModelProperty(value = "产品ID", required = true)
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @ApiModelProperty(value = "排序")
    private Integer sort;
}
